//
//  BaseResquest.h
//  LotteryClient
//
//  Created by SunYu on 14-2-6.
//  Copyright (c) 2014年 SunYu. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Base.h"

@interface BaseResquest : Base

AS_STATIC_PROPERTY_INT(baseType);
+ (NSString *)defaultWebServiceUrl;

+ (void)setDefaultWebServiceUrl:(NSString *)webServiceUrl;

@property (nonatomic , strong) NSMutableURLRequest *request;
/**z
 *  初始化一个网络请求
 *
 *  @return 默认的网络请求
 */
+ (BaseResquest *)requestWithDefaultWebServiceURL;

+ (BaseResquest *)requestWithWebServiceURL:(NSURL *)url;
+ (BaseResquest *)requestWithWebServiceURLString:(NSString *)urlString;

/**
 *  往request headers 中添加值
 *
 *  @param value 值
 *  @param key   键
 */
- (void)addRequestHeader:(NSString *)value andKey:(NSString *)key;

@end
